/*
 *@description:帮助详情页面
 *@Author:@rennan
 *@Date:2024-01-05 16:21:33
 *@version: V1.0.0
*/
<template>
  <div>
    <van-nav-bar title="帮助详情" left-text="返回" left-arrow @click-left="onClickLeft" />
    帮助详情页面 {{ paramId }}
    <div>
      {{ text }}
    </div>
  </div>
</template>
<script>
export default {
  data(){
    return{
      paramId:this.$route.params.id,
      helpList:[
        {
          id:'2001',
          helpText:'订单相关的帮助介绍...'
        },
        {
          id:'2002',
          helpText:'客户端使用的帮助介绍...'
        },
        {
          id:'2003',
          helpText:'优惠卷与活动的帮助介绍..'
        },
        {
          id:'2004',
          helpText:'支付与费用的帮助介绍..'
        },
      ]
    }
  },
  computed:{
    text(){
      return this.helpList.filter(item=>item.id == this.paramId)[0].helpText
    }
  },
  methods:{
    onClickLeft(){
      this.$router.go(-1)
    }
  }
}
</script>
<style scoped>
</style>